﻿using System;
using System.ComponentModel.DataAnnotations;

namespace TyMES.Model
{
    public enum BaseStatusEnum
    {
        [Display(Name = "_Enum._BaseStatus._CREATED")]
        CREATED,
        [Display(Name = "_Enum._BaseStatus._USED")]
        USED,
        [Display(Name = "_Enum._BaseStatus._FORBIDDEN")]
        FORBIDDEN
    }
    public enum OrderStatusEnum
    {
        [Display(Name = "_Enum._OrderStatus._CREATE")]
        CREATE,
        [Display(Name = "_Enum._OrderStatus._ISSUE")]
        ISSUE,
        [Display(Name = "_Enum._OrderStatus._PRODUCE")]
        PRODUCE,
        [Display(Name = "_Enum._OrderStatus._STOP")]
        STOP,
        [Display(Name = "_Enum._OrderStatus._CANCEL")]
        CANCEL,
        [Display(Name = "_Enum._OrderStatus._FINISH")]
        FINISH
    }
    public enum PersonGenderEnum
    {
        [Display(Name = "_Enum._PersonGender._MALE")]
        MALE,
        [Display(Name = "_Enum._PersonGender._FEMALE")]
        FEMALE
    }
    public enum ProductTypeEnum
    {
        [Display(Name = "_Enum._ProductType._PRODUCT")]
        PRODUCT,
        [Display(Name = "_Enum._ProductType._HALF_PRODUCT")]
        HALF_PRODUCT,
        [Display(Name = "_Enum._ProductType._OTHER")]
        OTHER
    }
    public enum EquipmentStatusEnum
    {
        [Display(Name = "_Enum._EquipmentStatus._NORMAL")]
        NORMAL,
        [Display(Name = "_Enum._EquipmentStatus._FREE")]
        FREE,
        [Display(Name = "_Enum._EquipmentStatus._MAINTAIN")]
        MAINTAIN,
        [Display(Name = "_Enum._EquipmentStatus._OFFLINE")]
        OFFLINE,
        [Display(Name = "_Enum._EquipmentStatus._REPAIR")]
        REPAIR,
        [Display(Name = "_Enum._EquipmentStatus._SCRAP")]
        SCRAP,
        [Display(Name = "_Enum._EquipmentStatus._ON_MACHINE")]
        ON_MACHINE,
        [Display(Name = "_Enum._EquipmentStatus._IN_LIBRARY")]
        IN_LIBRARY,
        [Display(Name = "_Enum._EquipmentStatus._IN_MAINTAIN")]
        IN_MAINTAIN,
        [Display(Name = "_Enum._EquipmentStatus._OVERHAUL")]
        OVERHAUL,
        [Display(Name = "_Enum._EquipmentStatus._CH_M_AND_T")]
        CH_M_AND_T,
        [Display(Name = "_Enum._EquipmentStatus._FAULT")]
        FAULT
    }
    public enum TrayBindStatusEnum
    {
        [Display(Name = "_Enum._TrayBindStatus._BIND")]
        BIND,
        [Display(Name = "_Enum._TrayBindStatus._LOSS")]
        LOSS,
        [Display(Name = "_Enum._TrayBindStatus._OTHER")]
        OTHER,
        [Display(Name = "_Enum._TrayBindStatus._IN")]
        IN,
        [Display(Name = "_Enum._TrayBindStatus._OUT")]
        OUT
    }

    public class RefDicNameAttribute : Attribute
    {
        public string Name { get; set; }
    }
}